/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.helwen.restaurantbooking.helper;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author Nghiata
 */
public class BeanManagerHelper {
    private static final ApplicationContext app=new ClassPathXmlApplicationContext("spring-beans.xml");

    public static Object getBean(String beanName){
        return app.getBean(beanName);
    }
    
}
